﻿    <form name="form" ng-submit="addAccount();" role="form">
    <!--<div class="form-group" ng-class="{ 'has-error': form.firstName.$dirty && form.firstName.$error.required }">
        <label for="username">First name</label>
        <input type="text" name="firstName" id="firstName" class="form-control" ng-model="vm.user.firstName" required />
        <span ng-show="form.firstName.$dirty && form.firstName.$error.required" class="help-block">First name is required</span>
    </div>
    <div class="form-group" ng-class="{ 'has-error': form.lastName.$dirty && form.lastName.$error.required }">
        <label for="username">Last name</label>
        <input type="text" name="lastName" id="Text1" class="form-control" ng-model="vm.user.lastName" required />
        <span ng-show="form.lastName.$dirty && form.lastName.$error.required" class="help-block">Last name is required</span>
    </div>-->
    <!--- <div class="form-group" ng-class="{ 'has-error': form.username.$dirty && form.username.$error.required }">
                <label for="username">Username</label>
                <input type="text" name="username" id="username" class="form-control" ng-model="newUser.Email" required />
                <span ng-show="form.username.$dirty && form.username.$error.required" class="help-block">Username is required</span>
            </div>
            <div class="form-group" ng-class="{ 'has-error': form.password.$dirty && form.password.$error.required }">
                <label for="password">Password</label>
                <input type="password" name="password" id="password" class="form-control" ng-model="newUser.Password" required />
                <span ng-show="form.password.$dirty && form.password.$error.required" class="help-block">Password is required</span>
            </div>
            <div class="form-group" ng-class="{ 'has-error': form.password.$dirty && form.password.$error.required }">
                <label for="password">Confirm Password</label>
                <input type="password" name="password" id="password" class="form-control" ng-model="newUser.ConfirmPassword" required />
                <span ng-show="form.password.$dirty && form.password.$error.required" class="help-block">Password is required</span>
            </div>
            <div class="form-actions">
                <button type="submit" ng-disabled="form.$invalid || vm.dataLoading" class="btn btn-primary" ng-click="addAccount();">Register</button>
                <img ng-if="vm.dataLoading" src="" />
                <a href="#/Login" class="btn btn-link">Cancel</a>
            </div>
        </form>
    </div> -->
        <div class=" form-group">
            <label for=" Username">User Name</label>
            <input type="text" class="form-control" id=" Username" placeholder="Select a user name" ng-model="newUser.Email" />
        </div>
    <!--<div class="form-group">
        <label for="emailAddress">Email address</label>
        <input type="email" class="form-control" id="emailAddress" placeholder="Enter email" ng-model="registerForm.userEmail">
    </div>-->
    <div class="form-group">
        <label for="password">Password</label>
        <input type="password" class="form-control" id="password" placeholder="Password" ng-model="newUser.Password">
    </div>
    <div class="form-group">
        <label for="password">Confirm Password</label>
        <input type="password" class="form-control" id="password" placeholder="Confirm Password" ng-model="newUser.ConfirmPassword">
    </div>
    <p class="help-block" ng-if="registerForm.errorMessage">{{registerForm.errorMessage}}</p>
    </div>
    <button type="submit" class="btn btn-default">Register</button>
</form>